package com.smartleanx.module.hrm.service.payroll.bo;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PayrollDetailSaveBO {

    /**
     * 薪资月份ID
     */
    @NotNull(message = "薪资月份ID不能为空")
    private Long payrollId;
    /**
     * 员工ID
     */
    @NotNull(message = "员工姓名不能为空")
    private Object employeeId;
    /**
     * 员工工号
     */
    @NotBlank(message = "员工工号不能为空")
    private String employeeNo;
    /**
     * 员工部门ID
     */
    private String employeeDeptId;
    /**
     * 员工岗位ID
     */
    @NotNull(message = "员工岗位不能为空")
    private String employeePostId;
    /**
     * 员工职级ID
     */
    private String employeePostLevelId;
    /**
     * 员工状态
     */
    @NotBlank(message = "员工状态不能为空")
    private String employeeState;
    /**
     * 应出勤
     */
    @Digits(integer = 2, fraction = 3, message = "应出勤整数位上限为2位，小数位上限为3位")
    private Double attendance;
    /**
     * 实际出勤
     */
    @Digits(integer = 2, fraction = 3, message = "应出勤整数位上限为2位，小数位上限为3位")
    private Double actualAttendance;
    /**
     * 实发薪资
     */
    @Digits(integer = 9, fraction = 6, message = "实发薪资整数位上限为9位，小数位上限为6位")
    private String effectiveSalary;

}
